package main

import (
	"fmt"
)

type A struct {
	val int
}

type B struct {
}

func main() {
	maps := make(map[interface{}]int)

	//a := new(A)
	//maps[a] = 1
	//maps[new(B)] = 2
	c := A{val: 3}
	d := A{val: 4}
	maps[c] = 2
	maps[d] = 5

	fmt.Println(maps)
	fmt.Println(maps[c])
	fmt.Println(maps[d])
}
